import 'package:freezed_annotation/freezed_annotation.dart';

part 'account_model.freezed.dart';
part 'account_model.g.dart';

@freezed
class AccountModel with _$AccountModel {
  const factory AccountModel({
    @JsonKey(name: 'ethereum_address') String? ethereumAddress,
    @JsonKey(name: 'tron_address') String? tronAddress,
    @JsonKey(name: 'bitcoin_address') String? bitcoinAddress,
    @JsonKey(name: 'private_key') String? privateKey,
    @JsonKey(name: 'public_key') String? publicKey,
    @JsonKey(name: 'eth_tail') int? ethTail,
    @JsonKey(name: 'tron_tail') int? tronTail,

  }) = _AccountModel;

  factory AccountModel.fromJson(Map<String, Object?> json) => _$AccountModelFromJson(json);
}

